<template>
    <div class="cmitem">
        <el-form-item label="来源" prop="copyfrom">
            <el-input v-model="localFormData.copyfrom" placeholder="请输入来源"></el-input>
        </el-form-item>
        <el-form-item label="来源URL" prop="copyurl">
            <el-input v-model="localFormData.copyurl" placeholder="请输入来源URL"></el-input>
        </el-form-item>
        <el-form-item prop="isallowcomment" label="是否允许评论">
            <el-radio key="1" :label="1" v-model="localFormData.isallowcomment">允许</el-radio>
            <el-radio key="0" :label="0" v-model="localFormData.isallowcomment">禁止</el-radio>
        </el-form-item>
        <el-form-item label="作者" prop="author">
            <el-input v-model="localFormData.author" placeholder="请输入作者"></el-input>
        </el-form-item>
    </div>
</template>

<script>
    import {toRef} from 'vue'
    export default {
        name: "",
        components: {},
        props: {
            formData: {
                type: Object
            },
        },
        setup(props) {
            const localFormData = toRef(props, 'formData')
            return {
                localFormData
            }
        }
    }
</script>

<style scoped  lang="scss">

</style>